package org.itcast.adi.planinfo.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.itcast.adi.planinfo.entity.PlanInfo;

import java.util.List;

@Mapper
public interface PlanInfoMapper {
    int savePlanInfo(PlanInfo planInfo);

    List<PlanInfo> findByPage(@Param("num") int startNum,
                              @Param("size") int pageSize,
                              @Param("planInfo") PlanInfo planInfo);


    int findByCount(PlanInfo planInfo);

    List<PlanInfo> findAll(PlanInfo planInfo);

    PlanInfo findById(String planId);

    List<PlanInfo> findByDesc(@Param("planDesc") String planDesc,@Param("parentId") String parentId);
}
